package com.xxx.sso.util;

/**
 * String 操作工具类
 * @author caiwl
 * @date 2020/5/9 8:36
 */
public class StringUtil {
    public static boolean isEmpty(String str) {
        return str == null || str.isEmpty();
    }

    public static boolean isEmpty(String... strs) {
        if (strs.length == 0) {
            return true;
        }
        for (String str : strs) {
            if (isEmpty(str)) {
                return true;
            }
        }
        return false;
    }

    public static boolean nonEmpty(String str) {
        return !isEmpty(str);
    }
}
